std::swap(std::unordered_map)

From Cppreference

Jump to: navigation, search
template< class Key, class T, class Hash, class KeyEqual, class Allocator >

void swap( unordered_map<Key,T,Hash,KeyEqual,Allocator> &lhs,

           unordered_map<Key,T,Hash,KeyEqual,Allocator> &rhs);

Swaps the contents of lhs and rhs. Calls ​lhs.swap(rhs).

Contents

Parameters

lhs, rhs - containers whose contents to swap

Return value

(none)

Complexity

See also

swap
swaps the contents
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages